package com.patrol.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.patrol.pojo.TaskPoint;
import com.patrol.pojo.UserTask;
import io.swagger.models.auth.In;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface TaskPointService extends IService<TaskPoint> {

    TaskPoint selectPointById(Integer taskId);

    List<TaskPoint> selectAllPoint();

    boolean clockPoint(int taskId, int userId);

    TaskPoint selectPointByName(String taskName);

    void allotPoint(String user, String point);

    List<Integer> findPointIds(int userId);

    void changePointState(String taskId, String date);

    boolean delUserTask(String userId, String taskId);

    int selectTaskState(int taskId, int userId);

    boolean selectUserPoint(String userId, String taskId);

    int selectUserRWPointState(Integer userId, Integer taskId);

    void updateTaskPointSign(String userId);
}
